<?= $slider ?>
<?= $breadcrumbs ?>
<?= View::factory('pieces/left_column', array('left_menu' => $left_menu)) ?>
<!-- Центральная колонка -->
<div class="center_cont">
	<? foreach ($posts as $key => $item): ?>
		<div class="post_cont">
			<h2><?= $item->title ?></h2>
			<? $v = $item->code; if (empty($v)): ?>
				<img src="<?= URL::site('static/uploads/articles/normal/'.$item->image) ?>" alt="<?= $item->title ?>" />
			<? else: ?>
				<?= $item->code ?><br /><br />
			<? endif ?>
			<p><?= Text::limit_words(strip_tags($item->text), 70) ?></p>
			<div class="post_more_cont">
				<div class="data">
					<?= Model::factory('Afunctions')->parse_date($item->creation_date) ?>
				</div>
				<div class="more"><a href="<?= URL::site('posts/'.$item->id) ?>" class="underline">Подробнее&nbsp;&raquo;</a></div>
			</div>
		</div>
	<? endforeach ?>
	<? if ($pages_count > 1): ?>
		<div class="post_more_cont">
			<div class="pages">
				<? for ($i = 1; $i <= $pages_count; $i++): ?>
					<? if ($i == 1): ?>
						<span><?= $i ?></span>
					<? else: ?>
						<a class="underline" href="<?= URL::site('posts/page/'.$i) ?>"><?= $i ?></a>
					<? endif ?>
				<? endfor ?>
				<a class="underline" href="<?= URL::site('posts/page/2') ?>" rel="next">Следующая</a>
				<a class="underline" href="<?= URL::site('posts/page/'.$pages_count) ?>" rel="last">Последняя</a>
			</div>
		</div>
	<? endif ?>
	<div class="ad2"><a href="<?= $bot_banner->link ?>"><img src="<?= URL::site('static/uploads/banners/'.$bot_banner->image) ?>" alt="Bottom banner" /></a></div>
</div>
<!-- Правая колонка -->
<?= View::factory('pieces/right_column', array('right_banners' => $right_banners, 'partners' => $partners)) ?>